package com.wxg.common.feign.remote;

import com.wxg.common.core.dao.mysql.website.User;
import com.wxg.common.feign.remote.impl.UserRemoteFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created by void on 2019/6/12.
 */
@FeignClient(name = "website-service", fallback = UserRemoteFallback.class)
public interface UserRemote {

    /**
     * 通过用户名查询
     * @param userName
     * @return
     */
    @GetMapping("/rpc/user/queryByUserName")
    User queryByUserName(String userName);
}
